<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

</head>

<body>
    <h1></h1>
    <input type="file">
    <button onclick="upload()">提交</button>
</body>
<script>
    function upload() {
        var input = document.getElementsByTagName('input')[0]
        console.log(11111);
        console.log(input.files[0]);
        // console.log(input.files);
    }
    function handleCallback(res) {
        // alert(res);
        console.log(res);
    }
    // $.ajax({
    //     url: 'http://127.0.0.1:8080/',
    //     type: 'get',
    //     dataType: 'jsonp',  // 请求方式为jsonp
    //     jsonpCallback: "handleCallback",  // 自定义回调函数名
    //     data: {}
    // });


</script>
<script src='http://127.0.0.1:8080/?callback=handleCallback'></script>

</html>